import java.awt.*;

public class ColorTriangle extends Triangle{
	private Color color;
	public ColorTriangle(Color c,Point p1,Point p2, Point p3){
		super(p1,p2,p3);
		if(c==null) c = Color.red;
		color =c;
	}
	public boolean equals(Object o){
	if(!(o instanceof ColorTriangle)) return false;
	ColorTriangle otherct = (ColorTriangle) o;
	return super.equals(otherct) && this.color.equals(otherct.color);
	}
}
